package com.example.day1;

import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity implements View.OnClickListener{
TextView test1;
Button button1,button2;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.text_layout);
        button1=findViewById(R.id.button);
        button2=findViewById(R.id.button2);
        test1=findViewById(R.id.text1_234);
        test1.setText("游戏学院1703A");
        test1.setTextColor(Color.argb(255,0,255,0));
        diandian dian = new diandian();
        button1.setOnClickListener(this);
        button2.setOnClickListener(this);
    }
    public void ffff(View v){

    }
    @Override
    public void onClick(View v) {
        String a="sdfsdfsdfs";

        switch(v.getId()){
            case R.id.button:
                Log.e("#####","点击按钮1");
            break;
            case R.id.button2:
                Log.e("#####","点击按钮2");
                break;
        }
    }
}
